From: Giovanni Campagna Date: Thu, 26 Jun 2014 16:25:14 +0000 (+0200) Subject: background: fix typo updating images for animated background X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2387 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b742b1eed23a8f8cdda001c8f05b1da5449694bb;p=gnome-shell.git background: fix typo updating images for animated background We must remove the old image from the cache, not the new one. This was causing a leak of old (and expensive) background images, and was causing errors at the end of animations, trying to destroy the animated background. --- diff --git a/js/ui/background.js b/js/ui/background.js index 3cdc7ef37..3730beb3a 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -448,7 +448,7 @@ const Background = new Lang.Class({ let image = this._images[index]; if (image.content) - this._cache.removeImageContent(content); + this._cache.removeImageContent(image.content); image.content = content; this._watchCacheFile(filename); },